package com.wx.mythread.startthread;

/**
 * 演示start和run方法两者之前的区别
 */
public class StartAndRunMethod  implements  Runnable{


    public static void main(String[] args) {
        StartAndRunMethod method = new StartAndRunMethod();
        method.run();
        new Thread(method).start();
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }
}
